{template head}
		<script type="text/javascript">
			$(function(){
				scrollbar($('.ScrollBox'),$(window).height());
				
				$(window).bind('resize',function(){
					scrollbar($('.ScrollBox'),$(window).height());
				});
			})
			
			function save(data)
			{
				layer.load();
					
				data.m = 'editpwd';
				
				var url = '{SITE_URL}ajax/index.php';
				
				var callback = function(data)
				{
					layer.closeAll('loading');
					if(data.sign == 1)
					{
						layer.closeAll();
						
						layer.alert(data.msg,function(){
							window.parent.location = '{SITE_URL}index.php?a=login&m=loginout';
						});
					}
					else
					{
						if(data.msg)
						{
							layer.msg(data.msg);
						}
						else
						{
							layer.msg('异常错误');
						}
					}
				};
				makeAjax('post',url,data,callback);
			}
			
			function editpwd()
			{
				var html = [];
		
				html.push('<div style="padding: 5px 10px;float:right;">原密码：<input type="password" id="pwdo" name="pwdo" class="mr15 w200 text"></div>');
				html.push('<div style="padding: 5px 10px;float:right;">新密码：<input type="password" id="pwdn1" name="pwdn1" class="mr15 w200 text"></div>');
				html.push('<div style="padding: 5px 10px;float:right;">确认新密码：<input type="password" id="pwdn2" name="pwdn2" class="mr15 w200 text"></div>');
				
				
				layer.open({
				  type: 1
				  ,title:'修改密码'
				  ,offset: 'auto' //具体配置参考：offset参数项
				  ,content: html.join('')
				  ,btn: '确定'
				  ,btnAlign: 'c' //按钮居中
				  ,shade:  [0.8, '#393D49'] //不显示遮罩
				  ,yes: function(){
				    var data = {};
				    	data.pwdo = $('#pwdo').val();
				  		data.pwdn1 = $('#pwdn1').val();
				  		data.pwdn2 = $('#pwdn2').val();
				  		
				  		
				  		if(data.pwdn1 == data.pwdn2)
				  		{
				  			save(data);
				  		}
				  		else
				  		{
				  			layer.msg('两次密码不一致');
				  		}
				  		
				  }
				});
			}
		</script>
	</head>
	
	<body>
		<div class="wrapper">
			<h2 class="form_tit" style="text-align: center;padding-left:0px;">用户统计</h2>
			<div class="form_item clearfix" style="text-align: center;">
			    <p class="clearfix">
					<label class="name" style="text-align:center;">今日注册(人)</label>
					<label style="display: inline-block;line-height: 30px;height: 30px;width: 150px;">&nbsp;</label>
					<label class="name" style="text-align:center;">今日确认投资(人)</label>
			    </p>
			    <p class="clearfix">
					<label class="name" style="text-align:center;" >{$jrzc}</label>
					<label style="display: inline-block;line-height: 30px;height: 30px;width: 150px;">&nbsp;</label>
					<label class="name" style="text-align:center;">{$jrtz}</label>
			    </p>
			    <p class="clearfix">
					<label class="name" style="text-align:center;">累积注册(人)</label>
					<label style="display: inline-block;line-height: 30px;height: 30px;width: 150px;">&nbsp;</label>	
					<label class="name" style="text-align:center;">累积确认投资(人)</label>
			    </p>
			    <p class="clearfix">
					<label class="name" style="text-align:center;">{$ljzc}</label>
					<label style="display: inline-block;line-height: 30px;height: 30px;width: 150px;">&nbsp;</label>	
					<label class="name" style="text-align:center;">{$ljtz}</label>	
			    </p>
			</div>
			
			
			<h2 class="form_tit" style="text-align: center;padding-left:0px;">资金统计</h2>
			<div class="form_item clearfix" style="text-align: center;">
			   	<p class="clearfix">
					<label class="name" style="text-align:center;">今日确认投资(元)</label>
					<label style="display: inline-block;line-height: 30px;height: 30px;width: 150px;">&nbsp;</label>
					<label class="name" style="text-align:center;">今日申请提现(元)</label>
			    </p>
			    <p class="clearfix">
					<label class="name" style="text-align:center;">{$jrtze}</label>
					<label style="display: inline-block;line-height: 30px;height: 30px;width: 150px;">&nbsp;</label>
					<label class="name" style="text-align:center;">{$jrtxe}</label>
			    </p>
			    <p class="clearfix">
					<label class="name" style="text-align:center;">累积确认投资(元)</label>
					<label style="display: inline-block;line-height: 30px;height: 30px;width: 150px;">&nbsp;</label>	
					<label class="name" style="text-align:center;">沉淀资金统计(元)</label>
			    </p>
			    <p class="clearfix">
					<label class="name" style="text-align:center;">{$ljtze}</label>
					<label style="display: inline-block;line-height: 30px;height: 30px;width: 150px;">&nbsp;</label>	
					<label class="name" style="text-align:center;">{$cdzje}</label>
			    </p>
			</div>
		</div>
{template foot}

<script>
	var m = '{$parm[m]}';
	
	if(m == 'editpwd')
	{
		editpwd();
		
	}
</script>